package com.sf.dlb.jpa.model;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 用户等级购买记录 Entity
 *
 * Created by jing.tan on 2018/12/10.
 */
@Entity
@Table(name = "user_grade_buy_record")
public class UserGradeBuyRecordInfo extends BaseEntity {
	/*
  `user_id` varchar(64) DEFAULT NULL COMMENT '用户Id',
  `before_grade` varchar(64) DEFAULT '0' COMMENT '购买之前的等级',
  `grade` varchar(64) DEFAULT NULL COMMENT '购买等级',
  `validity` int(8) DEFAULT NULL COMMENT '有效期(日)',
  `validity_time` datetime DEFAULT NULL COMMENT '过期时间',
  `pay_price` decimal(10,3) DEFAULT '0.000' COMMENT '支付金额',
  `buy_type` char(1) DEFAULT '0' COMMENT '购买类型 1购买，2续费，3购买高级',
  */
	
	private static final long serialVersionUID = 1L;
	private String userId;			// 用户Id
	private String beforeGrade;		// 购买之前的等级
	private String grade;			// 购买等级
	private Integer validity;		// 有效期(日)
	private Date validityTime;   // 过期时间
	private Double payPrice;     	//	支付金额
	private String buyType;     	//	购买类型 1购买，2续费，3购买高级

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public Integer getValidity() {
		return validity;
	}

	public void setValidity(Integer validity) {
		this.validity = validity;
	}

	public Date getValidityTime() {
		return validityTime;
	}

	public void setValidityTime(Date validityTime) {
		this.validityTime = validityTime;
	}

	public Double getPayPrice() {
		return payPrice;
	}

	public void setPayPrice(Double payPrice) {
		this.payPrice = payPrice;
	}

	public String getBuyType() {
		return buyType;
	}

	public void setBuyType(String buyType) {
		this.buyType = buyType;
	}

	public String getBeforeGrade() {
		return beforeGrade;
	}

	public void setBeforeGrade(String beforeGrade) {
		this.beforeGrade = beforeGrade;
	}
}